<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="css/bootstrap.min.css">
    <link rel="stylesheet" href="font-awesome-4.5.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="css/selectize.css">
    <link rel="stylesheet" href="css/selectize.bootstrap3.css">
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" type="text/css" href="css/wangEditor.min.css">
    <link rel="stylesheet" href="css/toastr.css">
    <style type="text/css">
    .content .main{margin-left:12%;width:80%;}
    th{text-align:right;}
    .pmtable td{padding-left:30px;}
    </style>
</head>
<body>
<div class="top">
    <div class="header navbar-fixed-top" role="navigation">
        <a class="navbar-brand" href="#">后台管理</a>
        <div class="dropdown text-right">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-user"></span>管理者</a>
            <ul class="dropdown-menu dropdown-menu-right">
                <li><a href="?c=login&a=logout">退出登录</a></li>
            </ul>
        </div>
    </div><?php 
$nav='home';
?>
    <nav class="navbar navbar-default" style=" width:100%;min-width: 1265px">
        <div class="container-fluid">
            <ul class="nav navbar-nav">
            <?php if (1 == $_SESSION['uid']){ ?>
                <li <?php if ($nav == 'home'){ ?>class="active"<?php } ?>><a href="?a=home"><i class="fa fa-home"></i>首页</a></li>
             <?php }else{ ?>  
             	<li <?php if ($nav == 'home'){ ?>class="active"<?php } ?>><a href="?a=send"><i class="fa fa-home"></i>首页</a></li>
             <?php } ?> 
                <li <?php if ($nav == 'admin'){ ?>class="active"<?php } ?>><a href="?c=admin"><i class="fa fa-key"></i>管理员</a></li>
            </ul>
        </div><!-- /.container-fluid -->
    </nav>
</div>

<div class="container-fluid content" id="content">
    <!-- ngView:  --><div ng-view="" class="ng-scope"><div class="container-fluid content ng-scope" id="content">
    <div class="sidebar">
        <ul class="nav nav-sidebar">
            <li id="b"><a href="?a=send">小票信息</a></li>
           <li id="d"><a href="?a=pay">小票支付</a></li>
        </ul>
    </div>
    
    <div class=" main" style="min-width: 600px">
        <div class="main-cont">
            <div class="sub-header" style="margin-bottom: 10px;padding: 0px">
                <h4 style="width: 100px;margin-bottom: 0px;padding-bottom: 20px">用户信息
                    <i data-toggle="tooltip" data-placemet="right" title="" class="fa fa-question-circle" data-original-title="对用户信息进行修改"></i></h4></div>

            

            <table class="pmtable" style="min-width: 600px">
                <tbody><tr>
                    <th>UID</th>
                    <td><?php echo $userInfo['uid']; ?></td>
                </tr>
                <tr>
                    <th>用户昵称</th>
                    <td><?php echo $wxInfo['nickname']; ?></td>
                    <td></td>
                </tr>
                <tr>
                    <th>用户头像</th>
                    <td><img width="60" src="<?php echo $wxInfo['headimgurl']; ?>"></td>

                </tr>
                <tr>
                    <th>姓名</th>
                    <td><?php echo $userInfo['name']; ?></td>
 
                </tr>
                <tr>
                    <th>手机号</th>
                    <td><?php echo $userInfo['phone']; ?></td>
 
                </tr>
                <tr>
                    <th>门店</th>
                    <td><?php echo $userInfo['dian']; ?></td>
 
                </tr>
                <tr>
                    <th>参与时间</th>
                    <td><?php echo $userInfo['createtime']; ?></td>
 
                </tr>
                <tr>
                    <th>小票照片</th>
                     <td><img src="http://mei94.com/le/upload/<?php echo $userInfo['pic']; ?>.jpg"></td>
 
                </tr>
                <tr>
                    <th>小票编号</th>
                    <td><?php echo $userInfo['bian']; ?></td>
                
                </tr>
                <tr>
                    <th>审核</th>
                    <td> 
                    <label class="checkbox-inline">
						<?php if ('yes' == $userInfo['shen']){ ?> 通过 <?php } ?>
						<?php if ('no' == $userInfo['shen']){ ?> 未通过<?php } ?>
					</label>
                    </td>
                
                </tr>
                <tr>
                    <th style="padding-top: 0px">回复</th>
                    <td colspan="4"><?php echo $userInfo['reply']; ?></td>
                </tr>
                
            </tbody></table>
            <div class="hr-line-dashed"></div>
            <div style="width: 600px;text-align:right;display:none;"><button id="remind" class="btn btn-success" ng-click="PMTsave(PMTcontent)">保存
            </button>
            </div>
        </div>
    </div>
    </div>
<div class="modal fade ng-scope" id="mymodal2">
    <div class="modal-dialog modal-sm">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title">提示</h4>
            </div>
            <div class="modal-body">
                <p>是否删除该职位</p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button data-toggle="modal" data-target="#mymodal3" type="button" class="btn btn-success" data-dismiss="modal">确定</button>
            </div>
        </div>

    </div>
</div>


</div>
</div>
 
<script src="js/jquery-2.2.4.min.js"></script>
<script src="js/toastr.js"></script>
<script src="js/easing.js"></script>
<script src="js/selectize.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/wangEditor.js"></script>
<script src="js/TileHeadPic.js"></script>
<script src="js/calendar.js"></script>
<script type="text/javascript">
$(function () {

    $('#remind').click(function () {
        toastr.options = {
            closeButton: false,
            debug: false,
            progressBar: false,
            positionClass: "toast-center",
            onclick: null,
            showDuration: "200",
            hideDuration: "1000",
            timeOut: "3000",
            extendedTimeOut: "1000",
            showEasing: "swing",
            hideEasing: "linear",
            showMethod: "fadeIn",
            hideMethod: "fadeOut"
        };
        var $toast = toastr['info']('保存成功', '提示');

        var bian=$("#bianhao").val();
        var shenhe=$("input[name='shenhe']:checked").val();
        console.log(shenhe);
        var reply=$("#reply").val();
        
        $.post("?a=save&id=<?php echo $id; ?>", {bian:bian,shenhe:shenhe,
        	reply:reply}, function(data){
        	window.setTimeout(function(){
            	window.location.href="?a=home"; 
                }, 1000);
		 }, "json");
        
        
        
    });

})


function Aoo(obj) {
    $("mymodal2").modal("toggle");


}
$(function(){
    $('[data-toggle="tooltip"]').tooltip()
})
</script>
</body></html>